package com.romotc.qqrobot.bean;

import java.sql.Timestamp;

import com.romotc.oschina.bean.POJO;
/**
 * QQ任务
 * 加好友，检查好友-客户对应关系等
 * @author Administrator
 *
 */
public class QQTask extends POJO {

	
	public static final String TaskType_CheckFriendAndCustomer = "checkFriendsAndCustomer";
	public static final String TaskType_ChgMarkName = "chgMarkName";
	
	/**
	 * 知道QQ号码加好友
	 */
	public static final String TaskType_AddFriends = "addFriendByQQNum";

	/**
	 * 需要重新尝试运行
	 */
	public static int RunResult_NeedReTry = 2;
	
	/**
	 * 异常 需要重试
	 */
	public static int RunResult_Error = RunResult_NeedReTry;


	/**
	 * 异常 不需要重试
	 */
	public static int RunResult_Error_DotTry = -9;
	
	public static int RunResult_Finished = 1;

	/**
	 * 任务类型
	 */
	private String taskType;
	
	private long loginId;
	
	/**
	 * 执行该任务的QQ
	 */
	private String taskQqNum;
	
	/**
	 * 执行任务的对象（被执行者）
	 */
	private String taskQqNum2;
	
	/**
	 * 执行任务的对象（被执行者Uin）
	 */
	private long taskQqUin;
	
	/**
	 * 任务创建时间
	 */
	private Timestamp taskInTime = new Timestamp(System.currentTimeMillis());

	/**
	 * 任务运行时间
	 */
	private Timestamp taskRunTime;
	
	/**
	 * 任务是否完成
	 */
	private int taskRunResult;
	
	/**
	 * 任务运行结果
	 */
	private String taskRunNote;
	
	/**
	 * 任务运行的必要信息
	 */
	private String content;


	public static void main(String[] args) {
		QQTask qTask = new QQTask();
		qTask.Save();
	}
	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public long getLoginId() {
		return loginId;
	}

	public void setLoginId(long loginId) {
		this.loginId = loginId;
	}

	public String getTaskQqNum() {
		return taskQqNum;
	}

	public void setTaskQqNum(String taskQqNum) {
		this.taskQqNum = taskQqNum;
	}

	public String getTaskQqNum2() {
		return taskQqNum2;
	}

	public void setTaskQqNum2(String taskQqNum2) {
		this.taskQqNum2 = taskQqNum2;
	}

	public long getTaskQqUin() {
		return taskQqUin;
	}

	public void setTaskQqUin(long taskQqUin) {
		this.taskQqUin = taskQqUin;
	}

	public Timestamp getTaskInTime() {
		return taskInTime;
	}

	public void setTaskInTime(Timestamp taskInTime) {
		this.taskInTime = taskInTime;
	}
	public Timestamp getTaskRunTime() {
		return taskRunTime;
	}
	public void setTaskRunTime(Timestamp taskRunTime) {
		this.taskRunTime = taskRunTime;
	}

	public int getTaskRunResult() {
		return taskRunResult;
	}
	public void setTaskRunResult(int taskRunResult) {
		this.taskRunResult = taskRunResult;
	}
	public String getTaskRunNote() {
		return taskRunNote;
	}
	public void setTaskRunNote(String taskRunNote) {
		this.taskRunNote = taskRunNote;
	}
	public void setTaskRunTime() {
		this.taskRunTime = new Timestamp(System.currentTimeMillis());
		
	}
	public void setTaskInTime() {
		this.taskInTime = new Timestamp(System.currentTimeMillis());
		
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
}
